package com.woniu.liuzhougov.authorityControl.dao;

import com.woniu.liuzhougov.authorityControl.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User getUserByLoginName(String userLoginName);

    Integer getUserIdByUserName(String addItemFounder);

    List<User> listUser(@Param("user") User user, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);

    int updateDepartmentByUserId(User user);

    int updateUserStatusByUserId(User user);

    User getUserDetailByUserId(Integer userId);

    int countLoginNameNumber(User user);

    int updateUserDetailsByUserId(User user);

    List<User> listUserByDepartmentId(Integer departmentId);

    int countRecordByDepartmentId(Integer departmentId);
}